package com.team.sns.entities;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * 2011-5-24
 * @author lyh
 * 
 */
@Entity
public class Photo implements Serializable{
	private static final long serialVersionUID = 1L;

	private Integer id;
	
	private String name = "";
	
	private String description = "";
	
	private Byte content;

	@Id @GeneratedValue(strategy = GenerationType.AUTO)
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(length = 100,nullable = false)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(length = 2000,nullable = true)
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(length = 1024,nullable = false)
	public Byte getContent() {
		return content;
	}

	public void setContent(Byte content) {
		this.content = content;
	}

}
